import request from '@/utils/request'

export function getFileCategoryTree(data) {
  return request({
    url: '/admin/file/category/tree',
    method: 'get',
    params: data
  })
}
export function createFileCategory(data) {
  return request({
    url: '/admin/file/category/create',
    method: 'post',
    data: data
  })
}
export function updateFileCategory(data) {
  return request({
    url: '/admin/file/category/update',
    method: 'post',
    data: data
  })
}
export function deleteFileCategory(data) {
  return request({
    url: '/admin/file/category/delete',
    method: 'post',
    data: data
  })
}

export function getFileList(data) {
  return request({
    url: '/admin/system/file/list',
    method: 'get',
    params: data
  })
}

export function deleteFile(data) {
  return request({
    url: '/admin/system/file/delete',
    method: 'post',
    data: data
  })
}
